<template>
	<view class="nocdetails">
		<u-navbar bgColor="transparent" titleStyle="color:#fff" title="公告详情" :placeholder="true" :auto-back="true" left-icon-color="#ffffff">
		</u-navbar>
		<view class="title">{{nocinfo.title}}</view>
		<view class="time">{{nocinfo.time}}</view>
		<view class="content">
			<u-parse :content="nocinfo.content"></u-parse>
		</view>	
	</view>
</template>

<script>
	export default{
		data(){
			return{
				id:'',
				nocinfo:{}
			}
		},
		onLoad(e) {
			this.id = e.id
			this.postnocdetails()
		},
		methods:{
			postnocdetails(){
				let params = {
					id:this.id
				}
				this.$Request({
					method: 'POST',
					url: '/api/index/noticeinfo',
					data: params
				}).then(res => {
					if (res.code == 1) {
						console.log(res.data)
						this.nocinfo = res.data
					}
				})
			}
		}
	}
</script>
<style>
	page {
		background: #17191A;
	}
</style>
<style scoped lang="scss">
	.nocdetails{
		padding: 30rpx;
		.title{
			color: #fff;
			text-align: center;
			font-weight: 600;
			font-size: 32rpx;
		}
		.time{
			color: #d1d1d1;
			font-size: 26rpx;
			margin-top: 20rpx;
		}
		.content{
			margin-top: 20rpx;
			color: #d1d1d1;
		}
	}
</style>